﻿using System;
using System.Collections.Generic;
using System.Text;

namespace _inherit
{
    class student:person
    {
        int id;

        public student(string name = "无名", int age = 18, string address = "中国",int id=01) : base(name, age, address)
        {
            Id = id;
        }

        public int Id { get => id; set => id = value; }



        public void Learing()
        {
            Console.WriteLine("学习");
        }

        public new void survive()
        {
            Console.WriteLine("吃喝拉撒睡还有人情");
        }
        
    }
}
